<ul>{% for post in posts %}
    <li><<a href="{% url 'post_detail' post.id %}">{{ post.title }}</a></li>
    {% endfor %}
</ul>
